#include "audio_output.h"
#include "audio.h"

#undef WITH_OPENAL

#ifdef WITH_OPENAL
#include "audio_output_openal.h"
#else
#ifdef _WIN32
#include "audio_output_win32.h"
#endif
#endif

using namespace krryn::audio;
using namespace krryn::audio_imp;

output::ptr output::create(){
	std::cout << "Loading audio driver: ";
#ifdef WITH_OPENAL
	std::cout << "OpenAL" << std::endl;
	return new output_openal();
#else
#ifdef _WIN32
	std::cout << "default windows driver" << std::endl;
	return new output_win32();
#else
	throw exception("No output driver");
#endif
#endif
}